<template>
  <el-container>
    <el-aside class="photo">
      <img
        src="http://106.15.179.105:3000/public/imgs/phone/Redmi-k30.png"
        alt=""
        style="width: 100%; height: 99%;"
      />
    </el-aside>
    <el-main>
      <div class="data">
        <h1 class="name">Redmi K30</h1>
        <p class="intro">
          120Hz高帧率流速屏/ 索尼6400万前后六摄 / 6.67'小孔径全面屏 /
          最高可选8GB+256GB大存储 / 高通骁龙730G处理器 / 3D四曲面玻璃机身 /
          4500mAh+27W快充 / 多功能NFC
        </p>
        <p class="store">就爱自营产品</p>
        <div class="price">
          <span>1599元</span>
        </div>
        <div class="pro-list">
          <span class="pro-name">Redmi K30</span>
          <span class="pro-price">
            <span>1599元</span>
          </span>
          <p class="price-sum">总计:1599元</p>
        </div>
        <div class="button">
          <el-button type="button" @click="toShoppingCart" class="shop">
            <span>加入购物车</span>
          </el-button>
          <el-button type="button" @click="tocollect" class="like">
            <span>收藏</span>
          </el-button>
        </div>
        <div class="pro-policy">
          <ul>
            <li>
              <i class="el-icon-circle-check"></i>
              就爱自营
            </li>
            <li>
              <i class="el-icon-circle-check"></i>
              顺丰包邮
            </li>
            <li>
              <i class="el-icon-circle-check"></i>
              七天无理由退货
            </li>
            <li>
              <i class="el-icon-circle-check"></i>
              七天价格保修
            </li>
          </ul>
        </div>
      </div>
    </el-main>
  </el-container>
</template>
<script>
export default {
  methods: {
    toShoppingCart() {
      this.$router.push('shoppingCart')
    },
    tocollect() {
      this.$router.push('collect')
    },
  },
}
</script>
<style>
.el-container {
  min-height: 40vw !important;
}
.el-main {
  margin: 10px !important;
}

.photo {
  width: 450px !important;
  height: 490px;
  margin-left: 70px;
  margin-top: 10px;
  float: left;
}
/* 详情资料 */
.data {
  float: left;
  margin-left: 50px;
  width: 640px !important;
}
.name {
  height: 30px;
  line-height: 30px;
  font-size: 24px;
  font-weight: 400;
  color: #212121;
}
.intro {
  color: #b0b0b0;
  padding-top: 10px;
}
.store {
  color: #ff6700;
  padding-top: 10px;
}
.price {
  display: block;
  font-size: 18px;
  color: #ff6700;
  border-bottom: 1px solid #e0e0e0;
  padding: 25px 0 25px;
}

.pro-list {
  background: #f9f9fa;
  padding: 30px 60px;
  margin: 50px 0 50px;
}
.pro-list span {
  line-height: 30px;
  color: #616161;
}
.pro-price {
  float: right;
}

.price-sum {
  color: #ff6700;
  font-size: 24px;
  padding-top: 20px;
}
.button {
  height: 55px;
  margin: 10px 0 20px 0;
}
.button .el-button {
  float: left;
  height: 55px;
  font-size: 16px;
  color: #fff;
  border: none;
  text-align: center;
}
.button .shop {
  width: 340px;
  background-color: #ff6700;
}
.button .shop:hover {
  background-color: #f25807;
}
.button .like {
  width: 260px;
  margin-left: 40px;
  background-color: #b0b0b0;
}
.button .like:hover {
  background-color: #757575;
}
.pro-policy li {
  float: left;
  margin-right: 20px;
  color: #b0b0b0;
}
</style>
